package com.aaa.controller.mht;

import com.aaa.entity.LayData;
import com.aaa.entity.TmhtRecordDedtail;
import com.aaa.service.mht.TmhtRecordDedtailService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * (TmhtRecordDedtail)表控制层
 *
 * @author yuyongli
 * @since 2022-10-26 16:53:12
 */
@RestController
@RequestMapping("tFpaRecordDedtail")
public class TmhtRecordDedtailController {
    /**
     * 服务对象
     */
    @Autowired
    private TmhtRecordDedtailService tmhtRecordDedtailService;

    @PostMapping
    // @RequestBody 把json字符串转化为对象   参数前面
    public LayData insertDetail(@RequestBody List<TmhtRecordDedtail> details){
        return new LayData(tmhtRecordDedtailService.insertBatch(details));
    }



}

